//
//  XWXNetWorkQuery.h
//  YuChangWL
//
//  Created by Mr_hi on 2018/12/19.
//  Copyright © 2018 zwhl. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface XWXNetWorkQuery : NSObject

+ (instancetype)sharedManage;

/**
 常规请求请求数据
 
 @param urlString 基本url
 @param method 请求方式
 @param token 是否有Token
 @param parms 参数
 @param completionBlock 成功回调
 @param errorBlock 失败回调
 
 */
- (void)AFRequestData:(NSString*)urlString HttpMethod:(NSString*)method HaveToken:(BOOL)token params:(NSMutableDictionary*)parms
     completionHandle:(void(^)(id result))completionBlock errorHandle:(void(^)(NSError* error))errorBlock;


/**
 Post请求请求数据(仅上传图片)
 
 @param urlString 基本url
 @param completionBlock 成功回调
 @param errorBlock 失败回调
 */
- (void)AFPostData:(NSString*)urlString data:(NSMutableArray *)Imagedatas completionHandle:(void (^)(id result))completionBlock errorHandle:(void (^)(NSError *error))errorBlock;


/**
 Post请求请求数据(上传图片带请求参数)
 
 @param urlStr 基本url
 @param params  请求参数
 @param completionBlock 成功回调
 @param errorBlock 失败回调
 */
- (void)AfPostUrl:(NSString *)urlStr params:(NSMutableDictionary *)params HaveToken:(BOOL)token  imgsData:(NSMutableDictionary *)ImageData completionHandle:(void(^)(id result))completionBlock errorHandle:(void(^)(NSError* error))errorBlock;


@end

NS_ASSUME_NONNULL_END
